Messages Property (Folder Object) 

The Messages property returns a Messages collection object within the folder. Read-only.

Syntax

objFolder.Messages

Data Type

Object

Remarks

The Messages property is the default property of a Folder object, meaning that Folder is syntactically equivalent to Folder.Name in Visual Basic code.

Example

' from the QuickStart sample

' use the Messages property of the Outbox folder

    Set objSession = CreateObject("MAPI.Session")

    objSession.Logon

    Set objMessage = objSession.Outbox.Messages.Add

 

See Also

ID Property (Message Object)1RMKEX8, Message ObjectC062VO, Messages Collection5C3TZ6O